package pd

import (
	"github.com/sniperHW/fly/core/bitmap"
)

type store struct {
	id     int            //store id
	leader int            //leader node id
	slots  *bitmap.Bitmap //slots bitmap
}

type transState int

const (
	transFinish  = transState(1)
	transCancel  = transState(2)
	transPrepare = transState(3)
)

type transaction struct {
	id       int64
	state    transState
	slot     int //slot will be transfer
	storeOut int //store id that slot transfer out
	storeIn  int //store id that slot transfer in
}
